<?php

namespace App\Repositories;

use App\Models\GoodsAttribute;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class GoodsAttributeRepository
 * @package App\Repositories
 * @version September 15, 2017, 8:34 am UTC
 *
 * @method GoodsAttribute findWithoutFail($id, $columns = ['*'])
 * @method GoodsAttribute find($id, $columns = ['*'])
 * @method GoodsAttribute first($columns = ['*'])
*/
class GoodsAttributeRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'goods_id',
        'name',
        'market_price',
        'sale_price',
        'sales_count',
        'number'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return GoodsAttribute::class;
    }
}
